package org.tea.inventory.db.enums;

/**
 * 行业类型枚举类型
 * @author hanzy
 * @description
 * @date 2023年02月24日 14:23
 */
public enum IndustryTypeEnum {
    DGTINDUSTRYNEWS("dgtIndustryNews","全部"),
    HIGHTECHNOLOGY("highTechnology","高科技"),
    FASTEXTINCTION("fastExtinction","快销"),
    MANUFACTURINGINDUSTRY("manufacturingIndustry","制造业"),
    ;

    private String name;
    private String content;
    public static String getContentByName(String name){
        for (IndustryTypeEnum typeEnum: IndustryTypeEnum.values()){
            if (typeEnum.getName().equals(name)){
                return typeEnum.getContent();
            }
        }
        return "";
    }
    IndustryTypeEnum(String name, String content) {
        this.name = name;
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
